<% 
odd_or_even = 0

for entry in @entries 
  odd_or_even = 1 - odd_or_even 
%>  
    <tr valign="top" id='datarow<%= entry.id %>' class="ListLine<%= odd_or_even %>">
        <td>
          <%= entry.occured_at.strftime("%Y-%m-%d %H:%M:%S") %>
        </td>
        <td>
          <%= Timequaltype.find(entry.timequaltype_id).timequaltype %>
        </td>
        <td>
          <%= Entrytype.find(entry.entrytype_id).entrytype %>
        </td>
        <td>
          <%= Entrysubtype.find(entry.entrysubtype_id).entrysubtype %>
        </td> 
        <td>
          <%= entry.entryvalue %>
        </td> 
        <td>
          <%= entry.notes %>&nbsp; 
        </td>  
        <td class="ListActions">
          <%= link_to 'Edit',{:action => 'edit', :id => entry} %>&nbsp;&nbsp;
          <%= link_to 'Delete', 
                { :action => 'destroy', :id => entry },:confirm => "Are you sure?" %>
        </td>
    </tr>
<% end %>
</table>